package com.fh.fruit.service.setMeal;

import java.util.List;
import java.util.Map;

import com.fh.entity.Page;
import com.fh.util.PageData;

/**
 * @author joe
 */
public interface SetMealManager {

	/**套餐列表
	 * @param page
	 * @return List<Map<String, Object>>
	 * @throws Exception
	 */
	List<Map<String, Object>> getMealList(Page page) throws Exception;

	/**套餐信息
	 * @param pd
	 * @return Map<String, Object>
	 * @throws Exception
	 */
	Map<String, Object> getMealMsg(PageData pd) throws Exception;

	/**新增套餐
	 * @param pd
	 * @return int
	 * @throws Exception
	 */
	int saveMeal(PageData pd) throws Exception;

	/**修改套餐
	 * @param pd
	 * @return int
	 * @throws Exception
	 */
	int updateMeal(PageData pd) throws Exception;

	/**套餐商品列表
	 * @param page
	 * @return List<Map<String, Object>>
	 * @throws Exception
	 */
	List<Map<String, Object>> getMealGoodsList(Page page) throws Exception;

	/**套餐商品
	 * @param pd
	 * @return Map<String, Object>
	 * @throws Exception
	 */
	Map<String, Object> getMealGoods(PageData pd) throws Exception;

	/**商品规格列表
	 * @param page
	 * @return List<Map<String, Object>>
	 * @throws Exception
	 */
	List<Map<String, Object>> getGoodsSpecList(Page page) throws Exception;

	/**套餐商品添加
	 * @param pd
	 * @return int
	 * @throws Exception
	 */
	int saveMealGoods(PageData pd) throws Exception;

	/**删除套餐商品
	 * @param pd
	 * @return int
	 * @throws Exception
	 */
	int deleteMealGoods(PageData pd) throws Exception;

	/**修改套餐状态
	 * @param pd
	 * @return int
	 * @throws Exception
	 */
	int updateMealState(PageData pd) throws Exception;

	/**修改套餐商品
	 * @param pd
	 * @return int
	 * @throws Exception
	 */
	int updateMealGoods(PageData pd) throws Exception;

	/**修改售馨状态
	 * @param pd
	 * @return int
	 * @throws Exception
	 */
	int updateSaleState(PageData pd) throws Exception;
	
}
